package com.itstyle.mytest.testM;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.itstyle.mytest.service.IMyTestService;
import com.itstyle.seckill.common.entity.Result;
import io.swagger.annotations.Api;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(tags = "我的测试1")
@RestController
@RequestMapping("/test1")
public class TestController {
    private final static Logger LOGGER = LoggerFactory.getLogger(TestController.class);

    @Autowired
    private IMyTestService testService;
    @GetMapping("/test1")
    public Result startQueue(){
//        Model model=new Model() {
//            @Override
//            public boolean insert() {
//                return super.insert();
//            }
//        };
//        model.insert();
        testService.print();
        return Result.ok();
    }

}
